<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="../common/bootstrap_knockout.jsp"></jsp:include>
<title>button exercise</title>
</head>
<body>
 <br>
 <!--  -->
 <p>
   <button type="button" class="close" aria-hidded="true">&times</button>
 </p>

 <!-- 加载状态-->
 <p>
   <button id="fat-btn" type="button" class="btn btn-primary" data-loading-text="Loading...">加载状态</button>
 </p>
 <script>
    $(function() {
	   $(".btn").click(function(){
	     $(this).button('loading').delay(1000).queue(function(){
		    // $(this).button('reset');
			// $(this).dequeue();
		 });
	   });
	});
 </script>
</body>
</html>